import http from '@/utils/request'

//添加
export const addCart = (data) => http.post('/cart/add', data)
//删除
export const delCart = (cid) =>
  http.get('/cart/del', {
    params: {
      cid
    }
  })
//修改
export const updateCart = (cid, number) =>
  http.get('/cart/updata', {
    params: {
      cid,
      number
    }
  })
